import Vue from 'vue'
import App from './App'
import router from './router'//导入自己的routerd对象
import './lib/mui/css/mui.min.css'
import "./lib/mui/css/icons-extra.css"
import './lib/icon/icon.css'
import './lib/style.css'
import 'mint-ui/lib/style.css'
// import './lib/mui/js/mui.min.js'
Vue.config.productionTip = false
import MintUI from 'mint-ui'
import { Header } from 'mint-ui'
Vue.component(Header.name, Header)
import { Swipe, SwipeItem } from 'mint-ui'
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.use(MintUI);
//导入时间格式化
import moment from 'moment'
//定义全局过滤器
Vue.filter('dateFormat', function (dataStr, pattern = "YYYY-MM-DD HH:mm:ss") {
  return moment(dataStr).format(pattern)
})
//导入 vue-resource
import vueRosource from 'vue-resource';
Vue.use(vueRosource);
Vue.http.options.root = 'http://www.liulongbin.top:3005';
Vue.http.options.emulateJSON = true;//定义全局post 时候表单数据格式形式
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})